package com.tsu.mall.common.service;

import com.tsu.mall.common.VO.*;
import com.tsu.mall.common.entity.Attachment;
import com.tsu.mall.common.entity.Wares;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tsu.mall.common.entity.Waresclassify;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tttttt
 * @since 2023-03-17
 */
public interface IWaresService extends IService<Wares> {

  

    LayuiTableVO doList(Integer page, Integer limit, String keyword, String waresStatus);

    List<Waresclassify> selectChildren(Integer id);

    LayuiTableVO selectById(Integer id);

    ResultVO doSave(Wares wares);

    void deleteWares(Integer[] ids);

    void upShelfWares(Integer[] ids);

    void downShelfWares(Integer[] ids);

    void uploadAttachmentByIds(String ids, Integer id);

    List<Attachment> selectList(Integer pid, String wares);

    List<Attachment> selectByids(String ids);

    List<WaresClassifyVO> selectClassifyList();

    List<Wares> selectBySecondId(Integer id);

    Wares doSelectById(Integer id);

    List<Wares> selectCheapWares();

    List<BillWaresVO> selectWaresByBillId(Integer billId);

    List<Wares> selectSellTop5Wares();

    List<Wares> selectSellTop6to10WaresInfo();

    List<IndexTableBingVO> dateBing();
}
